import request from '@/utils/request'

export function getAllMenu(params) {
    return request({
        url: '/mogu-admin/categoryMenu/getAll',
        method: 'get',
        params
    })
}

export function getMenuList(params) {
    return request({
        url: '/mogu-admin/categoryMenu/getList',
        method: 'post',
        data: params
    })
}

export function addMenu(params) {
    return request({
        url: '/mogu-admin/categoryMenu/add',
        method: 'post',
        data: params
    })
}

export function editMenu(params) {
    return request({
        url: '/mogu-admin/categoryMenu/edit',
        method: 'post',
        data: params
    })
}

export function deleteMenu(params) {
    return request({
        url: '/mogu-admin/categoryMenu/delete',
        method: 'post',
        data: params
    })
}

export function stickMenu(params) {
    return request({
        url: '/mogu-admin/categoryMenu/stick',
        method: 'post',
        data: params
    })
}

export function getButtonAll(params) {
    return request({
        url: '/mogu-admin/categoryMenu/getButtonAll',
        method: 'get',
        params
    })
}